package com.gopay.common.domain.fund;

import com.gopay.common.domain.BaseEntity;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * @author jianghp
 * @2016年7月14日 下午3:36:05  www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "FUND_GOPAY_FILE_NOTIFY")
public class FundGopayFileNotify extends BaseEntity {
    private String keyId;
    private String fileName;
    private String fileType;
    private Timestamp fileUploadTime;
    private Timestamp fileUpdateTime;
    private Timestamp tranFinishTime;
    private String filePath;
    private String respCode;
    private String memo;
    private Timestamp createdTs;
    private Timestamp lastUpdTs;
    private Integer version;

    private String merId;

    @Id
    @GenericGenerator(name="systemUUID",strategy="uuid")
    @GeneratedValue(generator="systemUUID")
    @Column(name = "KEY_ID", insertable = true, updatable = true, nullable = false)
    public String getKeyId() {
        return keyId;
    }

    public void setKeyId(String keyId) {
        this.keyId = keyId;
    }

    @Basic
    @Column(name = "MER_ID")
    public String getMerId() {
        return merId;
    }

    public void setMerId(String merId) {
        this.merId = merId;
    }

    @Basic
    @Column(name = "FILE_NAME")
    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    @Basic
    @Column(name = "FILE_TYPE")
    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    @Basic
    @Column(name = "FILE_UPLOAD_TIME")
    public Timestamp getFileUploadTime() {
        return fileUploadTime;
    }

    public void setFileUploadTime(Timestamp fileUploadTime) {
        this.fileUploadTime = fileUploadTime;
    }

    @Basic
    @Column(name = "FILE_UPDATE_TIME")
    public Timestamp getFileUpdateTime() {
        return fileUpdateTime;
    }

    public void setFileUpdateTime(Timestamp fileUpdateTime) {
        this.fileUpdateTime = fileUpdateTime;
    }

    @Basic
    @Column(name = "TRAN_FINISH_TIME")
    public Timestamp getTranFinishTime() {
        return tranFinishTime;
    }

    public void setTranFinishTime(Timestamp tranFinishTime) {
        this.tranFinishTime = tranFinishTime;
    }

    @Basic
    @Column(name = "FILE_PATH")
    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    @Basic
    @Column(name = "RESP_CODE")
    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    @Basic
    @Column(name = "MEMO")
    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    @Basic
    @Column(name = "CREATED_TS")
    public Timestamp getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Timestamp createdTs) {
        this.createdTs = createdTs;
    }

    @Basic
    @Column(name = "LAST_UPD_TS")
    public Timestamp getLastUpdTs() {
        return lastUpdTs;
    }

    public void setLastUpdTs(Timestamp lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    @Version
    @Column(name="\"VERSION\"")
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }


}
